import request from "./request";

export function getDownloadDatasets (query) {
  return request({
    url: '/single/download/getDownloadDatasets',
    method: 'get',
    params: query
  })
}

export function exportEntries(query) {
  return request({
    url: '/single/download/export',
    method: 'get',
    responseType: 'blob',
    timeout: 10 * 60 * 1000, // 10分钟超时，适用于大文件
    params: query
  })
}
